import request from '../libs/request'

// 获取被授权商数据 多条件
export const getLicenseeList = (data) => {
    return request({
        url: `/user/getLicenseeList`,
        data,
        method: 'get'
    })
}


// 启用用户
export const enableUser = (id, data) => {
    return request({
        url: `/user/admin/enable/${id}`,
        data,
        method: 'post'
    })
}
// 禁用用户
export const disableUser = (id, data) => {
    console.log('id:',id,'data:',data)
    return request({
        url: `/user/admin/disable/${id}`,
        data,
        method: 'post'
    })
}

// 重置用户密码
export const resetUserPass = (data) => {
    return request({
        url: '/user/resetPass',
        data,
        method: 'post'
    })
}
// 设置用户为CLE会员
export const setUserCle = (data) => {
    return request({
        url: '/user/setCle',
        data,
        method: 'post'
    })
}
// 取消设置用户为CLE会员
export const unsetUserCle = (data) => {
    return request({
        url: '/user/unsetCle',
        data,
        method: 'post'
    })
}